package com.example.chat.model.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ：YaXing
 * @date ：2022/3/29 17:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DropDownVo extends BaseVO {

    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "name")
    private String name;

    public static DropDownVo makeDropDownVo(String id, String name) {
        DropDownVo vo = new DropDownVo(id,name);
        vo.setId(id);
        vo.setName(name);
        return vo;
    }
}
